/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.edu.thptduongbachmai.model.pojo;

import java.sql.ResultSet;
import java.util.Map;

/**
 *
 * @author Son
 */
public interface Entity {
    
    /**
     * pull object data to map
     * @return 
     */
    public Map<String, Object> getFields();
    
    /**
     * Get table name
     * @return 
     */
    public String getTableName();
    
    /**
     * Get primary key
     * @return 
     */
    public String getKeyName();
    
    /**
     * pull data from resultset to object
     * @param result
     * @return 
     */
    public Object getDataFromResultSet(ResultSet result);
    
}